<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="vue.js"></script>
</head>
<body>
<div id="app">
    <!--<div v-for="(item, index) of list"-->
         <!--:key="item.id" >{{item}}-&#45;&#45;{{index}}</div>-->

    <div v-for="(item, key) of userInfo"
          >{{item}}---{{key}}</div>
</div>

<script>
    //<template> 模板占用符
    //pop push shift unshift splice sort reverse
    var vm = new Vue({
        el: "#app",
        data: {
            userInfo: {
                 name: "Dell",
                 age: 28,
                 gender: "male",
                 salary: "secret"
            }

        }
    })
</script>

</body>
</html>